﻿using HomagGroup.Base.UI;
using System.Collections.Generic;
using MenuItem = HomagGroup.Base.UI.Controls.MenuItem;

namespace HomagChina.CCT.DataTypeModel
{
    public class FunctionKeyBarItemDataModel : HomagGroup.Base.UI.NotifyPropertyChangedBase
    {
        public RelayCommand Command { get; set; }
        public UserRight UserRights { get; set; }
        public int Position { get; set; }
        public bool IsInvalid { get; set; }
        public bool IsChanged { get; set; }
        public string ToolTip { get; set; }
        private System.Windows.Media.Brush _Icon;

        public System.Windows.Media.Brush Icon
        {
            get => _Icon;
            set { _Icon = value; OnPropertyChanged(); }
        }

        private string _Header;

        public string Header
        {
            get => _Header;
            set { _Header = value; OnPropertyChanged(); }
        }

        public List<MenuItem> MenuItems { get; set; }
        public bool _IsEnabled = true;

        public bool IsEnabled
        {
            get => _IsEnabled;
            set { _IsEnabled = value; OnPropertyChanged(); }
        }

        public object CommandParameter { get; set; }
    }
}